Skip to content

chore(hybrid-cloud): transactions for metrics#45592

Merged
corps merged 9 commits intomasterfrom
zc/use-sentry-for-hc-metrics2
Mar 14, 2023
Merged

chore(hybrid-cloud): transactions for metrics#45592
corps merged 9 commits intomasterfrom
zc/use-sentry-for-hc-metrics2

Conversation

@corps
Copy link
Copy Markdown
Contributor

@corps corps commented Mar 9, 2023

No description provided.

@corps corps requested a review from a team as a code owner March 9, 2023 18:18
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 9, 2023
) -> Callable[..., Any]:
def wrapper(*args: Any, **kwds: Any) -> Any:
with sentry_sdk.start_transaction(
op=f"hybrid_cloud.services.{service_class_name}", name="execute"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markstory Should the op be execute, and the name be what the op is here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
op=f"hybrid_cloud.services.{service_class_name}", name="execute"
op=f"execute", name="hybrid_cloud.services.{service_class_name}.execute"

Flipping the names here might be better as name is used as the transaction name across the UI and is how you would search for this transaction.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be more helpful it it included the method name too, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added method name

Copy link
Copy Markdown
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have client side sampling for these transactions? Previously we were getting very high volume on the execute transaction, would we still get useful signal from a lower volume? Or is full volume the signal we want?

) -> Callable[..., Any]:
def wrapper(*args: Any, **kwds: Any) -> Any:
with sentry_sdk.start_transaction(
op=f"hybrid_cloud.services.{service_class_name}", name="execute"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
op=f"hybrid_cloud.services.{service_class_name}", name="execute"
op=f"execute", name="hybrid_cloud.services.{service_class_name}.execute"

Flipping the names here might be better as name is used as the transaction name across the UI and is how you would search for this transaction.

@corps
Copy link
Copy Markdown
Contributor Author

corps commented Mar 10, 2023

Should we have client side sampling for these transactions? Previously we were getting very high volume on the execute transaction, would we still get useful signal from a lower volume? Or is full volume the signal we want?

Some specific services have high volume, while others do not (they may have very low volume, but are still important). I could try a sampling rate and see what happens.

Copy link
Copy Markdown
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📿 hopefully this goes better this time around.

@corps corps merged commit dfb137d into master Mar 14, 2023
@corps corps deleted the zc/use-sentry-for-hc-metrics2 branch March 14, 2023 18:04
@corps corps added the Trigger: Revert Add to a merged PR to revert it (skips CI) label Mar 14, 2023
@getsentry-bot
Copy link
Copy Markdown
Contributor

PR reverted: 617e253

getsentry-bot added a commit that referenced this pull request Mar 14, 2023
This reverts commit dfb137d.

Co-authored-by: corps <593850+corps@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Mar 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components Trigger: Revert Add to a merged PR to revert it (skips CI)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants